/**
FilePermisionAction.java
netfile
2012-9-11上午10:53:21
@author 屈甲康
@QQ285799123
mailto:qujiakang@126.com
**/
package org.jackysoft.struts2.fileserver;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.annotations.Logger;
import org.jackysoft.entity.ReceivedFileItem;
import org.jackysoft.service.FilePermissionService;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.jackysoft.util.OperationType;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;


@Namespace("/fileserver/file")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
@Logger(label="审核文件",logType=OperationType.User)
public class FilePermissionAction extends UtilsCRUDAction<ReceivedFileItem> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6785970552012029813L;
	private FilePermissionService filePermisionService;
	
	public String passfile() throws Exception{
		
		filePermisionService.passFiles(stringList);
		return "passfile";
		
	}

	public FilePermissionService getFilePermisionService() {
		return filePermisionService;
	}

	@Resource
	public void setFilePermisionService(FilePermissionService filePermisionService) {
		this.filePermisionService = filePermisionService;
	    this.setDataProvider(filePermisionService);
	}
	

}
